home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 726-750 / 733 / termcap / source.lha / Makefile < prev    next >
Makefile  |  1992-09-27  |  3KB  |  112 lines

  1. # Makefile for GNU termcap library.
  2. # Copyright (C) 1992 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = gcc:src/termcap-1.0
  21.  
  22. CC = gcc
  23.  
  24. # If you don't have a BSD or GNU install program, use cp.
  25. INSTALL = copy
  26. INSTALLDATA = copy
  27.  
  28. # Things you might add to DEFS:
  29. # -DUSG            If you have memcpy instead of bcopy.
  30. # -DNO_ARG_ARRAY    If you can't take the address of the first of
  31. #            a group of arguments and treat it as an array.
  32.  
  33. DEFS = 
  34.  
  35. CDEBUG = 
  36. CFLAGS = $(CDEBUG) $(DEFS) -traditional -O2
  37.  
  38. # Directory in which to install libtermcap.a.
  39. libdir = gcc:lib
  40.  
  41. # Directory in which to install termcap.h.
  42. includedir = gcc:include
  43.  
  44. # Directory in which to optionally also install termcap.h,
  45. # so compilers besides gcc can find it by default.
  46. # If it is empty or not defined, termcap.h will only be installed in
  47. # includedir. 
  48. oldincludedir = 
  49.  
  50. # Directory in which to install the documentation info files.
  51. infodir = gcc:man/info
  52.  
  53. #### End of system configuration section. ####
  54.  
  55. # Version of libtermcap distribution.
  56. VERSION = 1.0
  57.  
  58. SRCS = termcap.c tparam.c
  59. OBJS = termcap.o tparam.o
  60. HDRS = termcap.h
  61. DISTFILES = $(SRCS) $(HDRS) COPYING README termcap.texinfo termcap.info* \
  62. texinfo.tex Makefile.in configure configure.in
  63.  
  64. all:    libtermcap.a termcap.info
  65. .PHONY: all
  66.  
  67. install: all
  68.     $(INSTALLDATA) libtermcap.a $(libdir)/libtermcap.a
  69.     ranlib $(libdir)/libtermcap.a
  70.     cd $(srcdir); $(INSTALLDATA) termcap.h $(includedir)/termcap.h
  71.     cd $(srcdir); test -n "$(oldincludedir)" && \
  72.       $(INSTALLDATA) termcap.h $(oldincludedir)/termcap.h
  73.     cd $(srcdir); $(INSTALLDATA) termcap.info* $(infodir)
  74. .PHONY: install
  75.  
  76. libtermcap.a: $(OBJS)
  77.     ar rc $@ $(OBJS)
  78.     ranlib $@
  79.  
  80. termcap.info: termcap.texinfo
  81.     makeinfo $termcap.texinfo< --output=$(srcdir)/$@
  82.  
  83. tags:    $(SRCS)
  84.     ctags $(SRCS)
  85.  
  86. TAGS:    $(SRCS)
  87.     etags $(SRCS)
  88.  
  89. clean:
  90.     rm -f *.a *.o core
  91. .PHONY: clean
  92.  
  93. mostlyclean: clean
  94. .PHONY: mostlyclean
  95.  
  96. distclean: clean
  97.     rm -f Makefile config.status
  98. .PHONY: distclean
  99.  
  100. realclean: distclean
  101.     rm -f TAGS tags *.info*
  102. .PHONY: realclean
  103.  
  104. dist: $(DISTFILES)
  105.     echo termcap-$(VERSION) > .fname
  106.     rm -rf `cat .fname`
  107.     mkdir `cat .fname`
  108.     ln $(DISTFILES) `cat .fname`
  109.     tar chZf `cat .fname`.tar.Z `cat .fname`
  110.     rm -rf `cat .fname` .fname
  111. .PHONY: dist
  112.